package com.xhwl.logistics.controller;

import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.vo.cent.vehicle.SyncVO;
import com.xhwl.logistics.service.IBasicInfoSyncService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @description: 车场基础静态信息同步
 * @author: lu.Aaron
 * @create: 2021-06-29 15:14
 * @menu 车场基础静态信息同步
 **/
//@RestController
@Api(tags = "车场基础静态信息同步")
@Slf4j
@RequestMapping("/basic-info-sync/test")   //已被VehicleSyncController替换使用
public class BasicInfoSyncController {
    @Autowired
    private IBasicInfoSyncService basicInfoSyncService;

    /**
     * 同步车场静态数据(by Type)
     * @param syncVO
     * @return
     */
    @ResponseBody
    @RequestMapping(value = "/sync-by-type", method = RequestMethod.POST)
    public ResultJson syncByType(@RequestHeader Short industryId,@RequestBody SyncVO syncVO) {

        return basicInfoSyncService.syncByType(industryId,syncVO);

    }



}

